package com.macro.mall.mapper;

import com.macro.mall.model.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BmsExhibitionsActivitiesMapper {

    // 手写新增方法
    int insert(BmsExhibitionsActivities bmsExhibitionsActivities);

    // 更新
    int update(BmsExhibitionsActivities bmsExhibitionsActivities);

    // 详情
    BmsExhibitionsActivities selectById(@Param("id") Long id);

    // 查询
    List<BmsExhibitionsActivities> selectAll(BmsExhibitionsActivities bmsExhibitionsActivities);

    // 删除方法
    int delete(@Param("ids") List<Long> ids);

    /**
     * 小程序查询展览活动list
     * 
     * @param bmsExhibitionsActivities
     * @return
     */
    List<BmsExhibitionsActivities> selectAllXiao(BmsExhibitionsActivities bmsExhibitionsActivities);

    /***
     * 小程序查询展览活动详情
     */
    BmsExhibitionsActivities selectXiao(@Param("id") Long id);

    /**
     * 查询相关展品
     * 
     * @param bmsExhibitionsActivitiesGoods
     * @return
     */
    List<BmsExhibitionsActivitiesGoods> selectAllGoods(BmsExhibitionsActivitiesGoods bmsExhibitionsActivitiesGoods);

    BmsExhibitionsActivities selectAllXiaoVr(BmsExhibitionsActivities BmsExhibitionsActivities);

    BmsExhibitionsActivitiesGoods selectGoodsDetailXiao(@Param("id") Long id);

    List<String> findPicListByActivitiesId(@Param("id") Long id);

    List<String> findPicListByActivitiesIdVr(@Param("id") Long id);

    List<BmsExhibitionsActivities> findistByIds(List<Long> ids);

}